//
//  NYCourseModel.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2018/1/10.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "NYCourseModel.h"

#import "NYCourseIntroduceCell.h"
#import "NYLearnRecordCell.h"

@implementation NYCourseModel
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
        NYCourseModel *model;
        return @{
                 @keypath(model,video) : [NYVideoModel class],
                  @keypath(model,message) : [NYAirlineItemModel class],
                  @keypath(model,examination) : [NYExaminationModel class],
                  @keypath(model,exercises) : [NYSubjectModel class],
//                  @keypath(model,video_exercise) : [NYSubjectModel class],
                 };
}
//+ (NSDictionary<NSString *, id> *)modelCustomPropertyMapper {
//        return @{@"examination":@"examine_list",
//                 @"message":@"video_message",};
//}
//
- (Class)cellClass {
        
        if (self.isRecord) {
                return [NYLearnRecordCell class];
        }
        return [NYCourseIntroduceCell class];

}
- (void)setExamine_list:(NSArray<NYExaminationModel *> *)examine_list {
        NSArray *arrayM = [NSArray modelArrayWithClass:[NYExaminationModel class] json:examine_list];
        _examination  = arrayM;
}
- (void)setVideo_message:(NSArray<NYAirlineItemModel *> *)video_message {
        NSArray *arrayM = [NSArray modelArrayWithClass:[NYExaminationModel class] json:video_message];
        _message  = arrayM;
}
@end
